﻿/**
 * This is a part of MCServe, which is available under the Apache license 2.0.
 * With this code, you may do whatever you want as long as that is not in conflict with this license.
 * In addition, you should have a reference to the original project to include (http://mcserve.codeplex.com).
 * 
 * Author       : Lars Krämer ( Xe77a )
 * Website      : http://www.lkraemer.de
 * Project      : MCServe (http://mcserve.codeplex.com)
 * Copyright    : Copyright (c) 2013 lkraemer.de
 * License      : http://mcserve.codeplex.com/license
 * Description  : This is a part of the core functionality of the server
 */

using MCServeLib.Objects;
using System;

namespace MCServeCore.Universal.Functions
{
    public class CommandExecuting
    {
        public static bool ExecuteCommand(string cmdstring)
        {
            Command befehl = new Command();
            string[] CommandData = cmdstring.Split(new Char[] { ' ' }, 1, StringSplitOptions.RemoveEmptyEntries);

            GameServer.Console.SendMessage("BEFEHL : " + CommandData[0]);
            GameServer.Console.SendMessage("WERT : " + CommandData[1]);

            /*
            befehl.Cmd = CommandData[0].Replace("/", "");

            string[] Arguments = CommandData[1];


            befehl.AddArgument("");
            */
            return true;
        }
    }
}